<!-- 达播登记表 -->
<template>
  <div class="mainTable">
    <BaseTable :query="query" :tableItems="tableItems" :updateItems="updateItems" :optionList="optionList"
      :methodParam="methodParam" :Btn="Btn" :importName="importName" :importURL="importURL" pageName="mainTable" />
  </div>
</template>
<script>
import dayjs from "dayjs"
import BaseTable from "../../table/importTable.vue";
export default {
  name: "dbdjb",
  data() {
    return {
      //后端人员修改-S
      //查询参数
      query: [
        { prop: "targetLivestreamerName", type: "input", placeholder: "请输入", value: "", name: "达人" },
        {
          prop: "searchTime", type: "time", placeholder: "",
          value: [dayjs(new Date()).add(-60, 'days').format("YYYY-MM-DD"), dayjs(new Date()).format("YYYY-MM-DD")],
          name: "查询时间"
        },

      ],
      //表格表头
      tableItems: [
        { name: "上传时间", prop: "上传该条数据记录的时间", align: "left", width: "200" },
        { name: "主播", prop: "主播", align: "left" },
        { name: "预估排期", prop: "预估排期" },
        { name: "服务费（含税）", prop: "服务费（含税）" },
        { name: "佣金", prop: "佣金" },
        { name: "佣金费用", prop: "佣金费用" },
        { name: "佣服费用合计", prop: "佣服费用合计" },
        { name: "GMV实际销售额", prop: "GMV实际销售额" },
        { name: "客单价", prop: "客单价" },
        { name: "成交件数", prop: "成交件数" },
        { name: "开单", prop: "开单" },
        { name: "货差", prop: "货差" },
        { name: "货差总费用", prop: "货差总费用" },
        { name: "货差率", prop: "货差率" },
        { name: "赠品单价", prop: "赠品单价" },
        { name: "赠品总费用", prop: "赠品总费用" },
        { name: "赠品率", prop: "赠品率" },
        { name: "合计费用（佣服赠货）", prop: "合计费用（佣服赠货）" },
        { name: "佣服费率", prop: "佣服费率" },
        { name: "总费率", prop: "总费率" },
        { name: "佣服ROI", prop: "佣服ROI" },
        { name: "品项", prop: "品项", align: "left", width: "200" },
        { name: "开单销售", prop: "开单销售" },
        { name: "开单费率", prop: "开单费率" },
        { name: "备注", prop: "备注", align: "left" },

      ],
      //增删查改的对象属性
      updateItems: [//edit是回复
        { name: "文件名称", prop: "fileName", type: "input", disabled: true },
        { name: "上传类型", prop: "uploadType", type: "select" },
        { name: "备注", prop: "remark", type: "textarea" },
        { name: "上传文件", prop: "fileAdd", type: "upload" },
      ],
      //增删查改的对象属性的下拉select或者级联cascader
      optionList: {
        unit: [
          { label: "日", value: "日" },
          { label: "周", value: "周" },
          { label: "月", value: "月" },
          { label: "年", value: "年" },
        ]
      },
      //增删查改方法参数
      // methodParam: "getDyFlagshipStoreLivingRoomDay",
      methodParam: "disDbdj",
      //自定义btn功能
      Btn: {
        search: true, //查询按钮
        add: false, //添加按钮
        edit: false, //回复按钮
        detail: false, //详情按钮
        delete: false, //删除按钮
        deletes: false, //批量删除按钮
        export: true, //导出按钮
        templateDownload: false, //模板下载按钮
        upload: false, //上传按钮
      },
      importName: "达播登记表上传表",
      // importURL: "uploadDyFlagshipStoreLivingRoomDay"
      importURL: "uploadDbdj"
      //后端人员修改-E
    };
  },
  components: {
    BaseTable
  },
  created() {
    let _this = this

  }
};
</script>
<style scoped lang="less">
.mainTable {
  background-color: #f1f2f9;
}
</style>